Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Change databaseState in longTermRetention.json to longTermRetentionDatabaseState #2693

Merged
merged 29 commits into from
Mar 19, 2018

Conversation

trgrie
Copy link
Contributor

@trgrie trgrie commented Mar 19, 2018

This checklist is used to make sure that common issues in a pull request are addressed. This will expedite the process of getting your pull request merged and avoid extra work on your part to fix issues discovered during the review process.

PR information

  • The title of the PR is clear and informative.
  • There are a small number of commits, each of which have an informative message. This means that previously merged commits do not appear in the history of the PR. For information on cleaning up the commits in your pull request, see this page.
  • Except for special cases involving multiple contributors, the PR is started from a fork of the main repository, not a branch.
  • If applicable, the PR references the bug/issue that it fixes.
  • Swagger files are correctly named (e.g. the api-version in the path should match the api-version in the spec).

Quality of Swagger

trgrie and others added 27 commits January 11, 2018 11:02
This change adds the swagger documentation for the Long Term Retention V2 feature along with examples for each of the APIs.. This includes the following APIs:

Get an LTR Backup
Get all LTR Backups under a database
Get all LTR Backups under a server
Get all LTR Backups under a location
Delete an LTR Backup
Set a database's LTR Policy
Get a database's LTR Policy
This update is a response to the few comments that Anu left on the PR. It removes an empty properties entry and updates the retention descriptions to explain that they use an ISO 8601 standard.
Made some slight changes to the entity names to better align with LTR V1 and added some better descriptors to some property descriptions.
 The weekOfYear parameter is not in an ISO 8601 format, it is just an integer between 1 and 52. Fixing that accordingly.
Need to remove backupLongTermRetentionPolicies so it doesn't conflict with the new backupLongTermRetentionPolicies.
Need to remove the reference to backupLongTermRetentionPolicies.json in the readme.
Updated the resource ID for longTermRetentionBackups so servers and databases are now longTermRetentionServers and longTermRetentionDatabases, respectively. This better aligns with REST.
LongTermRetentionPolicyGet.json was accidentally deleted in the last commit.
Made some changes to the examples to fix the Travis CI errors.
…licy to BackupLongTermRetentionPolicy to keep it consistent
@trgrie trgrie requested a review from a user March 19, 2018 17:05
@AutorestCI
Copy link

AutorestCI commented Mar 19, 2018

Automation for azure-sdk-for-node

Nothing to generate for azure-sdk-for-node

@AutorestCI
Copy link

AutorestCI commented Mar 19, 2018

Automation for azure-sdk-for-python

The initial PR has been merged into your service PR:
Azure/azure-sdk-for-python#1950

@AutorestCI
Copy link

AutorestCI commented Mar 19, 2018

Automation for azure-libraries-for-java

A PR has been created for you based on this PR content.

Once this PR will be merged, content will be added to your service PR:
Azure/azure-libraries-for-java#292

@@ -317,7 +317,7 @@
"Deleted"
],
"x-ms-enum": {
"name": "databaseState",
"name": "longTermRetentionDatabaseState",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

While we're at it consider creating a common definition for this parameter in the parameters/definitions section thus avoiding duplication

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have swagger generator so for now it's easier to keep it duplicated rather than manually edit :)

@AutorestCI
Copy link

AutorestCI commented Mar 19, 2018

Automation for azure-sdk-for-go

A PR has been created for you based on this PR content.

Once this PR will be merged, content will be added to your service PR:
Azure/azure-sdk-for-go#1335

@@ -317,7 +317,7 @@
"Deleted"
],
"x-ms-enum": {
"name": "databaseState",
"name": "longTermRetentionDatabaseState",
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We have swagger generator so for now it's easier to keep it duplicated rather than manually edit :)

Copy link
Contributor

@dsgouda dsgouda left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@dsgouda dsgouda merged commit 9bcba95 into Azure:master Mar 19, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants